//调用接口配置文件
import { request } from 'config/request'

//获取省市
export async function queryAllAddress(params) {
    return request({
        url: 'admin/address/queryAdminAddress',
        method: 'GET',
        data: params,
    });
};
//获取渠道信息详情
export async function getDetail(params) {
    return request({
        url: `admin/advertisement/info/${params.advertisementId}`,
        method: 'GET',
    });
};
//获取所有已上架项目
export async function AllEstateList(params) {
    return request({
        url: 'admin/estate/adminList',
        method: 'POST',
        data: params,
    });
};
export async function allActivityList(params) {
    return request({
        url: 'admin/news/list',
        method: 'POST',
        headers:{
            "content-type":'application/json'
        },
        data: params,
    });
};
//编辑或提交
export async function submit(params) {
    return request({
        url: 'admin/advertisement/saveOrupdate',
        method: 'POST',
        headers:{
            "content-type":'application/json'
        },
        data: params,
    });
};
// 审核通过
export async function advertisementAudit(params) {
    return request({
        url: 'admin/advertisement/advertisementAudit',
        method: 'POST',
        headers:{
            "content-type":'application/json'
        },
        data: params,
    });
};











